package k2_oop.p8_javaUtil;

import java.time.LocalDate;
import java.time.LocalTime;

public class UseLocalTime {
    public static void main(String[] args) {
        LocalTime currentTime = LocalTime.now();
        System.out.println(currentTime);
        System.out.println(LocalTime.of(9, 9, 9));

        System.out.println(currentTime.atDate(LocalDate.of(2004, 2, 2)));

        System.out.println(currentTime.getMinute());
        System.out.println(currentTime.withSecond(59));

        System.out.println(currentTime.plusHours(20));
    }
}
